{include file="public/header" /}
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>礼包详情</h5>
                </div>
                <div class="ibox-content layui-form">
                    <div class="layui-row layui-col-space10 layui-form-item ">

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">礼包名称：</label>
                            <div class="layui-input-block">
                                <input type="text" disabled class="layui-input" value="{$gift.gift_name}">
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">缩略图：</label>
                            <div class="layui-input-block">
                                    <div class="layui-upload-list img-circle">
                                        <img class="layui-append-img" src="{$gift.gift_thumb}" onerror="this.src='/static/admin/images/no_img.jpg'">
                                    </div>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md10">
                            <label class="layui-form-label">商品图集：</label>
                            <div class="layui-input-block">
                                {if count($gift.gift_images) > 0}
                                {volist name='gift.gift_images' id='vo'}
                                <div class="layui-upload-list img-circle">
                                    <img class="layui-append-img" src="{$vo}">
                                </div>
                                {/volist}
                                {else /}
                                暂无图片
                                {/if}
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">状态：</label>
                            <div class="layui-input-block">
                                {if($gift.gift_status == 1)}
                                <input type="text" class="layui-input" value="上架中" disabled>
                                {else /}
                                <input type="text" class="layui-input" value="已下架" disabled>
                                {/if}
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">推荐状态：</label>
                            <div class="layui-input-block">
                                {if($gift.gift_is_recommend == 1)}
                                <input type="text" class="layui-input" value="推荐" disabled>
                                {else /}
                                <input type="text" class="layui-input" value="不推荐" disabled>
                                {/if}
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">价格：</label>
                            <div class="layui-input-block">
                                <input type="text" disabled class="layui-input" value="{$gift.gift_price}">
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">首单减免：</label>
                            <div class="layui-input-block">
                                <input type="text" disabled class="layui-input" value="{$gift.gift_first_dec}">
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">分佣：</label>
                            <div class="layui-input-block">
                                <input type="text" disabled class="layui-input" value="{$gift.gift_fy}%">
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">自由创业者：</label>
                            <div class="layui-input-block">
                                <input type="text" disabled class="layui-input" value="{$gift.gift_is_zy == 1 ? '是':'否'}">
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">销量：</label>
                            <div class="layui-input-block">
                                <input type="text" disabled class="layui-input" value="{$gift.gift_sale_number}">
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">有效期：</label>
                            <div class="layui-input-block">
                                <input type="text" disabled class="layui-input" value="{$gift.gift_indate}个月">
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">发货时间说明：</label>
                            <div class="layui-input-block">
                                <input type="text" disabled class="layui-input" value="{$gift.gift_send_explain}">
                            </div>
                        </div>

                        <!--<div class="layui-form-item layui-col-md-offset1 layui-col-md8">-->
                            <!--<label class="layui-form-label">礼包种类：</label>-->
                            <!--<div class="layui-input-block">-->
                                <!--{if($gift.gift_type == 1)}-->
                                <!--<input type="text" class="layui-input" value="会员礼包" disabled>-->
                                <!--{else /}-->
                                <!--<input type="text" class="layui-input" value="体验礼包" disabled>-->
                                <!--{/if}-->
                            <!--</div>-->
                        <!--</div>-->

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">添加时间：</label>
                            <div class="layui-input-block">
                                <input type="text" disabled class="layui-input" value="{$gift.gift_time}">
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md10">
                            <label class="layui-form-label">商品详情：</label>
                            <div class="layui-input-block" id="LAY_editor" lay-verify="editor">
                                <p>{$gift.gift_content}</p>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

{include file="public/footer" /}
<script>
    var editor = wk.wang({elem:'#LAY_editor'});
</script>
</body>
</html>